home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 August: Tool Chest / Dev.CD Aug 94.toast / New System Software Extensions / Thread Manager Extension 2.0.1 / Sample Applications / Power Examples / SortPicts / Source / WindowObj.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-03  |  2.4 KB  |  67 lines  |  [TEXT/MPS ]

  1. /*************************************************************************************
  2.  *
  3.  *    Define all the WindowObj stuff
  4.  *
  5.  *    WindowObj.h    -    C Headers
  6.  *
  7.  *      Copyright © Apple Computer, Inc. 1988 - 1993
  8.  *      All rights reserved.
  9.  *
  10.  *    This defines the WindowObj class
  11.  *
  12.  *************************************************************************************/
  13. #ifndef __WINDOWOBJ__
  14. #define __WINDOWOBJ__
  15.  
  16. #include <Printing.h>
  17.  
  18. #define    ToWindowObj(it)        ((WindowObj *)(((WindowPeek)(it))->refCon))
  19. #define    WindowObjKind        'RT'    /*  Randy Thelen  */
  20.  
  21. class WindowObj {
  22. public:
  23.         WindowPtr    me;                    // The standard "me"
  24.         Boolean        useActivateClicks;    // Will the window drag if selected on the title bar?
  25.         Boolean        dirtyFlag;        // Doess this individual window need to be saved?
  26.         Handle        Scrap;            // Store the cut & copy stuff here
  27.         Handle        UndoScrap;        // Store undo-able objects here
  28. static    Boolean        isColor;        // Do WindowObjects have color?
  29.         THPrint        myPrintInfo;    // Where are we printing this stuff?
  30.  
  31. public:
  32. virtual void            InitObj( void);
  33. virtual    Boolean            NewWindowObj( void);            //    Construct the entity, load rsrc's, etc.
  34. virtual    Boolean            CloseWindowObj( void);            //    Deallocate the window
  35. virtual    void            IdleObj( void);
  36. virtual    void            AdjustMenusObj( void);
  37. virtual    void            KeyPressObj( EventRecord *event);
  38. virtual    void            MouseClickObj( EventRecord *event);
  39. virtual    void            UpdateObj( void);
  40. virtual    void            DrawObj( void);
  41. virtual    void            PageSetupObj( void);
  42. virtual    void            PrintObj( void);
  43. virtual void            CutObj( EventRecord *event);
  44. virtual void            CopyObj( EventRecord *event);
  45. virtual void            PasteObj( EventRecord *event);
  46. virtual void            UndoObj( EventRecord *event);
  47. virtual void            DeleteObj( EventRecord *event);
  48. virtual    void            DiskInsertObj( EventRecord *event);
  49. virtual void            ConvertScrapObj( void);
  50. virtual    void            ActivateObj( Boolean becomingActive);
  51. virtual    void            MenuObj( short menu, short item, EventRecord *event);
  52. virtual    void            AdjustCursorObj( Point mouseLoc, RgnHandle cursorRgn);
  53. virtual    void            DrawGrowIconObj( void);
  54. virtual void            DragWindowObj( EventRecord *event);
  55. virtual void            GrowWindowObj( EventRecord *event);
  56. virtual void            SetWindowTitle( Str255 *title);
  57. virtual void            ZoomWindowObj( EventRecord *event, Boolean OutIsTrue);
  58. virtual void            ScrollWindowObj( EventRecord *event);
  59. virtual short int        DrawingWidth( void);
  60. virtual short int        DrawingHeight( void);
  61. virtual void            DrawingRect( Rect *area);
  62. };
  63.  
  64. #endif
  65.  
  66.  
  67.